package com.haierp.model.purchase;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * 采购任务记录
 * @author zhulu
 *
 */
public class TaskReceipt implements Serializable{
	/** 主键id */
	@TableId(type = IdType.AUTO)
	private Long id;
	
	@TableField(value = "receipt_id")
	private Long receiptId;
	@TableField(value = "item_id")
	private Long itemId;
	@TableField(value = "sku_id")
	private Long skuId;
	
	private Integer quantity;
	@TableField(value = "trans_quantity")
	private Integer transQuantity;
	
	@TableField(value = "receipt_no")
	private String receiptNo;
	
	private Double price;//单价
	
	private String upc;
	
	@TableField(exist=false)
	private String skuPic;
	
	@TableField(value = "sku_buysite")
	private String skuBuysite;
	
	@TableField(value = "task_daily_detail_id")
	private Long taskDailyDetailId;
	
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	@TableField(value = "gmt_modify")
	private Date gmtModify;
	@TableField(value = "user_create")
	private String userCreate;
	@TableField(value = "user_modify")
	private String userModify;
	@TableField(value = "batch_no")
	private String batchNo;
	
	@TableField(exist = false)
	private Long buyerId;
	
	@TableField(exist=false)
	private String itemName;
	
	@TableField(exist=false)
	private String skuCode;
	
	@TableField(exist=false)
	private Double purchasePrice;
	
	@TableField(exist=false)
	private Double discount;
	
	@TableField(exist=false)
	private Double costPrice;

	@TableField(exist=false)
	private String purchaseAddress;
	
	@TableField(exist=false)
	private String taskOrderNo;
	
	@TableField(exist=false)
	private String buyerName;
	
	public Long getId() {
		return id;
	}
	public Double getPurchasePrice() {
		return purchasePrice;
	}
	public void setPurchasePrice(Double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}
	public Double getDiscount() {
		return discount;
	}
	public void setDiscount(Double discount) {
		this.discount = discount;
	}
	public Double getCostPrice() {
		return costPrice;
	}
	public void setCostPrice(Double costPrice) {
		this.costPrice = costPrice;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getReceiptId() {
		return receiptId;
	}
	public void setReceiptId(Long receiptId) {
		this.receiptId = receiptId;
	}
	public Long getItemId() {
		return itemId;
	}
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
	public Long getSkuId() {
		return skuId;
	}
	public void setSkuId(Long skuId) {
		this.skuId = skuId;
	}
	public Integer getQuantity() {
		if(quantity == null) {
			return 0;
		}
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public Integer getTransQuantity() {
		if(transQuantity == null) {
			return 0;
		}
		return transQuantity;
	}
	public void setTransQuantity(Integer transQuantity) {
		this.transQuantity = transQuantity;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public String getUpc() {
		return upc;
	}
	public void setUpc(String upc) {
		this.upc = upc;
	}
	public String getSkuBuysite() {
		return skuBuysite;
	}
	public void setSkuBuysite(String skuBuysite) {
		this.skuBuysite = skuBuysite;
	}
	public Long getTaskDailyDetailId() {
		return taskDailyDetailId;
	}
	public void setTaskDailyDetailId(Long taskDailyDetailId) {
		this.taskDailyDetailId = taskDailyDetailId;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public Date getGmtModify() {
		return gmtModify;
	}
	public String getUserCreate() {
		return userCreate;
	}
	public void setUserCreate(String userCreate) {
		this.userCreate = userCreate;
	}
	public String getUserModify() {
		return userModify;
	}
	public void setUserModify(String userModify) {
		this.userModify = userModify;
	}
	public String getReceiptNo() {
		return receiptNo;
	}
	public void setReceiptNo(String receiptNo) {
		this.receiptNo = receiptNo;
	}
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	public String getBatchNo() {
		return batchNo;
	}
	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}
	public Long getBuyerId() {
		return buyerId;
	}
	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}
	public String getSkuPic() {
		return skuPic;
	}
	public void setSkuPic(String skuPic) {
		this.skuPic = skuPic;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public String getSkuCode() {
		return skuCode;
	}
	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}
	public String getPurchaseAddress() {
		return purchaseAddress;
	}
	public void setPurchaseAddress(String purchaseAddress) {
		this.purchaseAddress = purchaseAddress;
	}
	public String getTaskOrderNo() {
		return taskOrderNo;
	}
	public void setTaskOrderNo(String taskOrderNo) {
		this.taskOrderNo = taskOrderNo;
	}
	public String getBuyerName() {
		return buyerName;
	}
	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}
	
	
}
